package com.lzs.kucun.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lzs.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzs.util.R;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wpy
 * @since 2020-11-25
 */
public interface StockService extends IService<Stock> {
    Page<Stock> selectStockPage(Integer current, Integer size, Stock stock,String[] warehouseid);
    R updateStockQuantity(Long locatorid,Long commodityid,Long warehouseid,Integer qty);//这个不改
    R updateLqtyQuantity(String locatorcode,String commoditybar,Long warehouseid,Integer qty);
    R selectCommoditybar(String locatorcode,Long wid);
    Stock selectQuantity(Long wid,String ccode,String lcode);
    R updateUqtyQuantity(String locatorcode,String commoditybar,Long warehouseid,Integer qty);
    Boolean selectIsExit(String locatorcode,String commoditybar,Long warehouseid);
    R updateAllQuantity(String locatorcode, String commoditybar, Long warehouseid, Integer qty);
    R reduceQuantity(String locatorcode, String commoditybar, Long warehouseid, Integer qty);
    List<Stock> selectStockInfo(Long warehouseid,  String type);
    R updateLqtyCQuantity(String locatorcode, String commoditybar, Long warehouseid, Integer qty)throws RuntimeException;
    User selectUser(Long userid);
    Locator selectLocator(String locatorcode);
    Commodity selectCommodity(String commoditycode);
    Warehouse selectWarehouse(Long warehouseid);
}
